<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div style="float: left;height:34px;line-height:34px;">提现单号：</div>
            <div style="float: left;">
                <input type="text" class="form-control" v-model="q.number" @keyup.enter="query" placeholder="请输入内容">
            </div>
            <div style="float: left;margin-left:10px;height:34px;line-height:34px;">提现时间：</div>
            <div style="float: left;width:350px;margin-right: 10px;" id="sandbox-container">

                <div class="input-group date" style="width:46%;float:left;">
                    <input type="text" class="form-control" id="startime"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
                </div>
                <div style="width: 4%;float:left;margin-left:7px;margin-top:8px;padding-left:1px;">
                    -
                </div>
                <div class="input-group date" style="width:48%;">
                    <input type="text" class="form-control" id="endtime"><span class="input-group-addon"><i class="glyphicon glyphicon-th"></i></span>
                </div>

            </div>
            <div style="float: left;margin-left:10px;height:34px;line-height:34px;">状态：</div>
            <div style="float: left;width:160px;margin-right: 10px;">
                <select class="form-control" v-model="q.statu" @keyup.enter="query">
                    <option></option>
                    <option value="0">审核中</option>
                    <option value="1">通过</option>
                    <option value="2">未通过</option>
                </select>
            </div>
            <a class="btn btn-primary" @click="query">查询</a>
            <#if shiro.hasPermission("sys:cash:save")>
            <a class="btn btn-primary" @click="add">&nbsp;新增提现</a>
        </#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showLists" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">可用余额</div>
                        <div class="col-sm-10">
                            <span style="color: red;line-height:34px;" id="balance"></span>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"><span style="color: red">*</span>金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="cash.money" placeholder="收款账号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"><span style="color: red">*</span>收款银行</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="cash.bank" placeholder="收款银行"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"><span style="color: red">*</span>收款账号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="cash.account" placeholder="收款账号"/>
                        </div>
                    </div>

							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>

    <div v-show="!showListInfo" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">可用余额</div>
                <div class="col-sm-10">
                    <span style="color: red;line-height:34px;" id="balances"></span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"><span style="color: red">*</span>金额</div>
                <div class="col-sm-10">
                    <span style="line-height:34px;" id="money"></span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"><span style="color: red">*</span>收款银行</div>
                <div class="col-sm-10">
                    <span style="line-height:34px;" id="bank"></span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"><span style="color: red">*</span>收款账号</div>
                <div class="col-sm-10">
                    <span style="line-height:34px;" id="account"></span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"><span style="color: red">*</span>状态</div>
                <div class="col-sm-10">
                    <span style="line-height:34px;" id="status"></span>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-2 control-label"><span style="color: red">*</span>备注</div>
                <div class="col-sm-10">
                    <span style="line-height:34px;" id="remarks"></span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>

    <div class="modal fade" id="examineModal" tabindex="-1" role="dialog" aria-labelledby="examineModalLabel">
        <div class="modal-dialog" role="document">
            <form class="form-horizontal">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="examineModalLabel">提现审核</h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-group">
                            <div class="col-sm-2 control-label"><span style="color: red">*</span>审核状态</div>
                            <div class="col-sm-10">
                                <select id="statu" class="form-control">
                                    <option value="0"></option>
                                    <option value="1">通过</option>
                                    <option value="2">不通过</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-2 control-label"><span style="color: red">*</span>备注</div>
                            <div class="col-sm-10">
                                <textarea rows="10" cols="6" placeholder="备注" class="form-control" id="remark"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" id="btn_submit" class="btn btn-primary" data-dismiss="modal" onclick="vm.sh()">确认</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>



<script src="${request.contextPath}/statics/js/modules/sys/cash.js?_${.now?long}"></script>
<script>
    $("#sandbox-container .input-group.date").datepicker({
        language: "zh-CN",
        clearBtn: true, //清除按钮
        format: "yyyy-mm-dd",
        todayHighlight:true
    });
</script>
</body>
</html>